export default [
	{
		url: '/account/login',
		type: 'post',
		response: config => {
			const { principal } = config.body;
			console.log(config);
			return principal === 'admin'
				? {
						data: {
							id: '1230050453592408065',
							username: 'admin',
							gender: false,
							rememberMe: false,
							ip: '127.0.0.1',
							roles: ['ROLE_GUEST', 'ROLE_ADMIN'],
							accesses: ['*:read', '*:delete', '*:create', '*:write']
						}
				  }
				: {
						data: {
							id: '1230050453755985921',
							username: 'Guest',
							gender: false,
							rememberMe: false,
							ip: '127.0.0.1',
							roles: ['ROLE_GUEST'],
							accesses: ['*:read']
						}
				  };
		}
	}
];
